package com.bigscreen.dao.Impl;

import com.bd1904.conf.Constants;
import com.bd1904.db.JedisUtil;
import com.bigscreen.dao.BigScreenDao;
import org.springframework.stereotype.Repository;
import redis.clients.jedis.Jedis;

@Repository
public class BigScreenImpl implements BigScreenDao {
    @Override
    public String queryTotalAmt() {
        Jedis jedis = JedisUtil.getJedis();
        String totalAmt = jedis.get(Constants.JEDIS_CALC_TOTAL_AMT);
        return totalAmt;
    }
}
